package com.ruoyi.rel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rel.mapper.RelBankFileMapper;
import com.ruoyi.rel.domain.RelBankFile;
import com.ruoyi.rel.service.IRelBankFileService;

/**
 * 题库文件关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-30
 */
@Service
public class RelBankFileServiceImpl implements IRelBankFileService 
{
    @Autowired
    private RelBankFileMapper relBankFileMapper;

    /**
     * 查询题库文件关联
     * 
     * @param id 题库文件关联ID
     * @return 题库文件关联
     */
    @Override
    public RelBankFile selectRelBankFileById(Long id)
    {
        return relBankFileMapper.selectRelBankFileById(id);
    }

    /**
     * 查询题库文件关联列表
     * 
     * @param relBankFile 题库文件关联
     * @return 题库文件关联
     */
    @Override
    public List<RelBankFile> selectRelBankFileList(RelBankFile relBankFile)
    {
        return relBankFileMapper.selectRelBankFileList(relBankFile);
    }

    /**
     * 新增题库文件关联
     * 
     * @param relBankFile 题库文件关联
     * @return 结果
     */
    @Override
    public int insertRelBankFile(RelBankFile relBankFile)
    {
        return relBankFileMapper.insertRelBankFile(relBankFile);
    }

    /**
     * 修改题库文件关联
     * 
     * @param relBankFile 题库文件关联
     * @return 结果
     */
    @Override
    public int updateRelBankFile(RelBankFile relBankFile)
    {
        return relBankFileMapper.updateRelBankFile(relBankFile);
    }

    /**
     * 批量删除题库文件关联
     * 
     * @param ids 需要删除的题库文件关联ID
     * @return 结果
     */
    @Override
    public int deleteRelBankFileByIds(Long[] ids)
    {
        return relBankFileMapper.deleteRelBankFileByIds(ids);
    }

    /**
     * 删除题库文件关联信息
     * 
     * @param id 题库文件关联ID
     * @return 结果
     */
    @Override
    public int deleteRelBankFileById(Long id)
    {
        return relBankFileMapper.deleteRelBankFileById(id);
    }
}
